
//
//  InfoModel.m
//  ZZLC
//
//  Created by 杨春至 on 2017/12/18.
//  Copyright © 2017年 ZhongZeng. All rights reserved.
//

#import "InfoModel.h"


@implementation InfoModel
- (CGFloat)height{
    CGFloat gap = 15;
    CGSize titleSize = [_content sizeWithFont:[UIFont systemFontOfSize:14] constrainedToSize:CGSizeMake(KWidth - 2*gap, MAXFLOAT) lineBreakMode:NSLineBreakByWordWrapping];
    CGFloat heights = titleSize.height + 10.0 +10.0 + ((_img.length>1)?270:50);
    return heights;
}

@end
